﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000E71 RID: 3697
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueBuffEnhanceInfoList : IMessage<RogueBuffEnhanceInfoList>, IMessage, IEquatable<RogueBuffEnhanceInfoList>, IDeepCloneable<RogueBuffEnhanceInfoList>, IBufferMessage
	{
		// Token: 0x17002EEF RID: 12015
		// (get) Token: 0x0600A5DC RID: 42460 RVA: 0x001BEA41 File Offset: 0x001BCC41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueBuffEnhanceInfoList> Parser
		{
			get
			{
				return RogueBuffEnhanceInfoList._parser;
			}
		}

		// Token: 0x17002EF0 RID: 12016
		// (get) Token: 0x0600A5DD RID: 42461 RVA: 0x001BEA48 File Offset: 0x001BCC48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueBuffEnhanceInfoListReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002EF1 RID: 12017
		// (get) Token: 0x0600A5DE RID: 42462 RVA: 0x001BEA5A File Offset: 0x001BCC5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueBuffEnhanceInfoList.Descriptor;
			}
		}

		// Token: 0x0600A5DF RID: 42463 RVA: 0x001BEA61 File Offset: 0x001BCC61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffEnhanceInfoList()
		{
		}

		// Token: 0x0600A5E0 RID: 42464 RVA: 0x001BEA74 File Offset: 0x001BCC74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffEnhanceInfoList(RogueBuffEnhanceInfoList other) : this()
		{
			this.enhanceInfoList_ = other.enhanceInfoList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600A5E1 RID: 42465 RVA: 0x001BEA9E File Offset: 0x001BCC9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueBuffEnhanceInfoList Clone()
		{
			return new RogueBuffEnhanceInfoList(this);
		}

		// Token: 0x17002EF2 RID: 12018
		// (get) Token: 0x0600A5E2 RID: 42466 RVA: 0x001BEAA6 File Offset: 0x001BCCA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueBuffEnhanceInfo> EnhanceInfoList
		{
			get
			{
				return this.enhanceInfoList_;
			}
		}

		// Token: 0x0600A5E3 RID: 42467 RVA: 0x001BEAAE File Offset: 0x001BCCAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueBuffEnhanceInfoList);
		}

		// Token: 0x0600A5E4 RID: 42468 RVA: 0x001BEABC File Offset: 0x001BCCBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueBuffEnhanceInfoList other)
		{
			return other != null && (other == this || (this.enhanceInfoList_.Equals(other.enhanceInfoList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600A5E5 RID: 42469 RVA: 0x001BEAF0 File Offset: 0x001BCCF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.enhanceInfoList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600A5E6 RID: 42470 RVA: 0x001BEB24 File Offset: 0x001BCD24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600A5E7 RID: 42471 RVA: 0x001BEB2C File Offset: 0x001BCD2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600A5E8 RID: 42472 RVA: 0x001BEB35 File Offset: 0x001BCD35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.enhanceInfoList_.WriteTo(ref output, RogueBuffEnhanceInfoList._repeated_enhanceInfoList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600A5E9 RID: 42473 RVA: 0x001BEB5C File Offset: 0x001BCD5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.enhanceInfoList_.CalculateSize(RogueBuffEnhanceInfoList._repeated_enhanceInfoList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600A5EA RID: 42474 RVA: 0x001BEB95 File Offset: 0x001BCD95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueBuffEnhanceInfoList other)
		{
			if (other == null)
			{
				return;
			}
			this.enhanceInfoList_.Add(other.enhanceInfoList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600A5EB RID: 42475 RVA: 0x001BEBC3 File Offset: 0x001BCDC3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600A5EC RID: 42476 RVA: 0x001BEBCC File Offset: 0x001BCDCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 74U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.enhanceInfoList_.AddEntriesFrom(ref input, RogueBuffEnhanceInfoList._repeated_enhanceInfoList_codec);
				}
			}
		}

		// Token: 0x0400436C RID: 17260
		private static readonly MessageParser<RogueBuffEnhanceInfoList> _parser = new MessageParser<RogueBuffEnhanceInfoList>(() => new RogueBuffEnhanceInfoList());

		// Token: 0x0400436D RID: 17261
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400436E RID: 17262
		public const int EnhanceInfoListFieldNumber = 9;

		// Token: 0x0400436F RID: 17263
		private static readonly FieldCodec<RogueBuffEnhanceInfo> _repeated_enhanceInfoList_codec = FieldCodec.ForMessage<RogueBuffEnhanceInfo>(74U, RogueBuffEnhanceInfo.Parser);

		// Token: 0x04004370 RID: 17264
		private readonly RepeatedField<RogueBuffEnhanceInfo> enhanceInfoList_ = new RepeatedField<RogueBuffEnhanceInfo>();
	}
}
